%clear all;
%close all;



N = 4;
adj = [0 1 1 0 0; 1 0 0 1 0; 1 0 0 1 0; 0 1 1 0 1; 0 0 0 1 0]
%adj = [0 1 1 0; 1 0 0 1; 1 0 0 1; 0 1 1 0]

DG = sparse(adj7);
UG = tril(DG + DG');
%view(biograph(DG,[],'ShowWeights','on'))

view(biograph(UG,[],'ShowArrows','off','ShowWeights','on'))

paths = {};
paths = dfs(adj7, [1], 6, paths)
%pi = find_paths(1:7, 1, adj7);
%paths = find_all_paths(pi, 1, 3, {}, inf)
